﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using LeadVinaglue.Models;
using LeadVinaglue.Models.ViewPages;
using LeadVinaglue.Repository;
using LeadVinaglue.Utility;

namespace LeadVinaglue.Controllers
{
    public class HelpController : Controller
    {
        LEManagementRepository repository = new LEManagementRepository();

        // GET: /Help/
        [DeviceFilterAttribute(Order = 1)]
        public ActionResult Index()
        {
            LEManagementModel model = new LEManagementModel();
            model = repository.GetHelpModel(LeadConstant.HELP, 0);

            return View(model);
        }

        [DeviceFilterAttribute(Order = 1)]
        public ActionResult Detail(int id)
        {
            LEManagementModel model = new LEManagementModel();
            model = repository.GetHelpModel(LeadConstant.HELP, id);

            return View(model);
        }

    }
}
